package cn.glutnn.entity.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * Author:   msh
 * Date:     2024/10/24 下午11:53
 * Description:数据传输对象
 */

@Data
public class LoginDTO {
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @Size(min = 4, max = 16, message = "密码长度必须在4-16位之间")
    private String password;
}
